↳ Prolog
↳ PrologToPiTRSProof
insert_in_gga(X, void, tree(X, void, void)) → insert_out_gga(X, void, tree(X, void, void))
insert_in_gga(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gga(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_gg(X, Y))
U5_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gga(X, Y, Left, Right, Left1, insert_in_gga(X, Left, Left1))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gga(X, Y, Left, Right, Right1, insert_in_gga(X, Right, Right1))
U4_gga(X, Y, Left, Right, Right1, insert_out_gga(X, Right, Right1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gga(X, Y, Left, Right, Left1, insert_out_gga(X, Left, Left1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
insert_in_gga(X, void, tree(X, void, void)) → insert_out_gga(X, void, tree(X, void, void))
insert_in_gga(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gga(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_gg(X, Y))
U5_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gga(X, Y, Left, Right, Left1, insert_in_gga(X, Left, Left1))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gga(X, Y, Left, Right, Right1, insert_in_gga(X, Right, Right1))
U4_gga(X, Y, Left, Right, Right1, insert_out_gga(X, Right, Right1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gga(X, Y, Left, Right, Left1, insert_out_gga(X, Left, Left1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right))
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GGA(X, Y, Left, Right, Left1, less_in_gg(X, Y))
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U5_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U1_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_GGA(X, Y, Left, Right, Left1, insert_in_gga(X, Left, Left1))
U1_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GGA(X, Left, Left1)
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GGA(X, Y, Left, Right, Right1, less_in_gg(Y, X))
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GG(Y, X)
U3_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_GGA(X, Y, Left, Right, Right1, insert_in_gga(X, Right, Right1))
U3_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GGA(X, Right, Right1)
insert_in_gga(X, void, tree(X, void, void)) → insert_out_gga(X, void, tree(X, void, void))
insert_in_gga(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gga(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_gg(X, Y))
U5_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gga(X, Y, Left, Right, Left1, insert_in_gga(X, Left, Left1))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gga(X, Y, Left, Right, Right1, insert_in_gga(X, Right, Right1))
U4_gga(X, Y, Left, Right, Right1, insert_out_gga(X, Right, Right1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gga(X, Y, Left, Right, Left1, insert_out_gga(X, Left, Left1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GGA(X, Y, Left, Right, Left1, less_in_gg(X, Y))
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → U5_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U1_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_GGA(X, Y, Left, Right, Left1, insert_in_gga(X, Left, Left1))
U1_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GGA(X, Left, Left1)
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GGA(X, Y, Left, Right, Right1, less_in_gg(Y, X))
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → LESS_IN_GG(Y, X)
U3_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_GGA(X, Y, Left, Right, Right1, insert_in_gga(X, Right, Right1))
U3_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GGA(X, Right, Right1)
insert_in_gga(X, void, tree(X, void, void)) → insert_out_gga(X, void, tree(X, void, void))
insert_in_gga(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gga(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_gg(X, Y))
U5_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gga(X, Y, Left, Right, Left1, insert_in_gga(X, Left, Left1))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gga(X, Y, Left, Right, Right1, insert_in_gga(X, Right, Right1))
U4_gga(X, Y, Left, Right, Right1, insert_out_gga(X, Right, Right1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gga(X, Y, Left, Right, Left1, insert_out_gga(X, Left, Left1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
insert_in_gga(X, void, tree(X, void, void)) → insert_out_gga(X, void, tree(X, void, void))
insert_in_gga(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gga(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_gg(X, Y))
U5_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gga(X, Y, Left, Right, Left1, insert_in_gga(X, Left, Left1))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gga(X, Y, Left, Right, Right1, insert_in_gga(X, Right, Right1))
U4_gga(X, Y, Left, Right, Right1, insert_out_gga(X, Right, Right1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gga(X, Y, Left, Right, Left1, insert_out_gga(X, Left, Left1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
U1_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GGA(X, Left, Left1)
U3_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GGA(X, Right, Right1)
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GGA(X, Y, Left, Right, Right1, less_in_gg(Y, X))
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GGA(X, Y, Left, Right, Left1, less_in_gg(X, Y))
insert_in_gga(X, void, tree(X, void, void)) → insert_out_gga(X, void, tree(X, void, void))
insert_in_gga(X, tree(X, Left, Right), tree(X, Left, Right)) → insert_out_gga(X, tree(X, Left, Right), tree(X, Left, Right))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_gg(X, Y))
U5_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U1_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → U2_gga(X, Y, Left, Right, Left1, insert_in_gga(X, Left, Left1))
insert_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X))
U3_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → U4_gga(X, Y, Left, Right, Right1, insert_in_gga(X, Right, Right1))
U4_gga(X, Y, Left, Right, Right1, insert_out_gga(X, Right, Right1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1))
U2_gga(X, Y, Left, Right, Left1, insert_out_gga(X, Left, Left1)) → insert_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
U1_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) → INSERT_IN_GGA(X, Left, Left1)
U3_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) → INSERT_IN_GGA(X, Right, Right1)
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) → U3_GGA(X, Y, Left, Right, Right1, less_in_gg(Y, X))
INSERT_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) → U1_GGA(X, Y, Left, Right, Left1, less_in_gg(X, Y))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U5_gg(X, Y, less_in_gg(X, Y))
U5_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
U1_GGA(X, Y, Left, Right, less_out_gg) → INSERT_IN_GGA(X, Left)
INSERT_IN_GGA(X, tree(Y, Left, Right)) → U1_GGA(X, Y, Left, Right, less_in_gg(X, Y))
INSERT_IN_GGA(X, tree(Y, Left, Right)) → U3_GGA(X, Y, Left, Right, less_in_gg(Y, X))
U3_GGA(X, Y, Left, Right, less_out_gg) → INSERT_IN_GGA(X, Right)
less_in_gg(0, s(X)) → less_out_gg
less_in_gg(s(X), s(Y)) → U5_gg(less_in_gg(X, Y))
U5_gg(less_out_gg) → less_out_gg
less_in_gg(x0, x1)
U5_gg(x0)
From the DPs we obtained the following set of size-change graphs: